<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Gallery.ascx.cs" Inherits="FrontEnd_Center_Gallery" %>
<div>
    <div align="center">
        <img src="FileUpload/Gallery/slide.png" style="filter: progid:DXImageTransform.Microsoft.Fade(duration=1);" id="ads" /></div>
    <div id="scriptAds" runat="server">
    </div>
</div>

<script language="javascript" type="text/javascript">
var indexAds = 0;
var totalAds ='<%=ads.Count %>';

DisplayAds();
setInterval("DisplayAds()",5000);

function DisplayAds()
{
    ads = document.getElementById("ads");
    ads.src = arrAdsImage[indexAds];
    if (ads.filters)
    {
        ads.filters[0].Apply();
        ads.filters[0].Play();
    }
    indexAds++;
    if (indexAds == totalAds)
        indexAds = 0;        
}       
</script>

